import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/pages/Home'
import About from '@/pages/About'
import Message from '@/pages/Message'
import News from '@/pages/News'

Vue.use(VueRouter)

export default new VueRouter({
  mode:'history',
  routes:[
    {
      path:'/home',
      component:Home,
      children:[
        {path:'message',component:Message},
        {path:'news',component:News}
      ]
    },
    {
      path:'/about',
      component:About
    }
  ]
})

